export const state = () => ({
  err: -1,
  msg: '未登录',
  token: '',
  name: '',
  id: ''
})

export const mutations = {
  M_UPDATE_USER(state, payload) {
    state.err = payload.err
    state.msg = payload.msg
    state.token = payload.token
    state.name = payload.name
    state.id = payload.id
  }
}
